package com.yu.waterstation;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yu.waterstation.modules.app.mapper.AddressMapper;
import com.yu.waterstation.modules.app.mapper.TaskLogMapper;
import com.yu.waterstation.modules.app.pojo.Address;
import com.yu.waterstation.modules.app.pojo.Task;
import com.yu.waterstation.modules.app.pojo.TaskLog;
import io.swagger.annotations.Api;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Random;

@SpringBootApplication
@MapperScan("com.yu.waterstation.**.mapper")
@RestController
public class WaterStationAdminRun {

    public static void main(String[] args) {
        SpringApplication.run(WaterStationAdminRun.class, args);
    }

    @Transactional(rollbackFor = Exception.class)
    @GetMapping({"/status"})
    public String run() {
        return "服务器正常运行";
    }


}
